package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 药房表(购物车表)
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_CART")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="药房表(购物车表)",description="药房表(购物车表)")
public class TCart implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/**  */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "")
	private Long id;
	
	/** 是否删除(0否，1是) */
	@Column(name = "is_delete" )
	@ApiModelProperty(value = "是否删除(0否，1是)")
	private Integer isDelete;
	
	/** 患者微信 */
	@Column(name = "user_id" )
	@ApiModelProperty(value = "用户id")
	private Integer userId;
	
	/** 购买的药品 */
	@Column(name = "goods" )
	@ApiModelProperty(value = "购买的药品")
	private String goods;
	
	/** 商品总额 */
	@Column(name = "rental" )
	@ApiModelProperty(value = "商品总额")
	private Double rental;
	
	/** 支付状态(0待支付,1已支付) */
	@Column(name = "status" )
	@ApiModelProperty(value = "支付状态(0待支付,1已支付)")
	private Integer status;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
	/** 修改时间 */
	@Column(name = "update_time" )
	@ApiModelProperty(value = "修改时间")
	private java.util.Date updateTime;
	
}
